package com.example.cyh.bczapp.Code.BLL;

import com.example.cyh.bczapp.Code.Helper.HttpHelper;
import com.example.cyh.bczapp.Code.Model.PlanInfEntity;
import com.google.gson.Gson;

import java.util.Dictionary;
import java.util.Hashtable;

/**
 * Created by cyh on 2017/6/23.
 */

public class CommonBll {
    private final String BaseUrl = "http://123.207.86.30/public/index.php/db/";

    public String Sendcode(String email) {
        String url = BaseUrl + "Api/Sendcode";
        Dictionary<String, String> param = new Hashtable();
        param.put("email", email);
        try {
            String back = HttpHelper.POST(url, param);
            if (back != "false")
                return back;
            else
                return "error";
        } catch (Exception ex) {
            return null;
        }
    }
}
